package io.kiki.sba.registry.server.data_store;

import io.kiki.sba.registry.server.data_store.bootstrap.Enable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
//scalable business architecture

@Enable
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class DataStoreApplication {

    private static final Logger logger = LoggerFactory.getLogger(DataStoreApplication.class);

    public static void main(String[] args) {
        // setup DefaultUncaughtExceptionHandler
        Thread.setDefaultUncaughtExceptionHandler((t, e) -> logger.error("UncaughtException in Thread {}", t.getName(), e));
        SpringApplication.run(DataStoreApplication.class, args);
    }
}
